//
// Created by hkkzzxz on 24-9-10.
//

#ifndef YUNSHI_EMPLOYEEALLATTENDANCE_H
#define YUNSHI_EMPLOYEEALLATTENDANCE_H

// 所有员工考勤记录实体类

#include <iostream>

#include "Model.h"

class EmployeeAllAttendance : public Model {
public:
    EmployeeAllAttendance() = default;

    void FillFromRow(sql::ResultSet *rs) override;

    [[nodiscard]]const std::string &getId() const;

    [[nodiscard]]const std::string &getName() const;

    [[nodiscard]]const std::string &getPhoneNumber() const;

    [[nodiscard]]const std::string &getCheckInTime() const;

    [[nodiscard]]const std::string &getCheckOutTime() const;

    [[nodiscard]]const std::string &getDate() const;

    [[nodiscard]]bool isLate() const;

    [[nodiscard]]bool isLeaveEarly() const;

private:
    std::string id;
    std::string name;
    std::string phoneNumber;
    std::string checkInTime;
    std::string checkOutTime;
    std::string date;
    bool late;
    bool leaveEarly;
};


#endif //YUNSHI_EMPLOYEEALLATTENDANCE_H
